package com.gregbugaj.nscaffold;

import java.io.IOException;

import org.hsqldb.persist.HsqlProperties;
import org.hsqldb.server.Server;
import org.hsqldb.server.ServerAcl.AclFormatException;

public class DBTest {

	/**
	 * @param args
	 * @throws AclFormatException 
	 * @throws IOException 
	 */
	public static void main(String[] args) throws IOException, AclFormatException {
		HsqlProperties p = new HsqlProperties();
		p.setProperty("server.database.0","file:c:/temp/nscaffold");
		p.setProperty("server.dbname.0","an_alias");
		// set up the rest of properties
		Server server = new Server();
		server.setProperties(p);
		server.setLogWriter(null); // can use custom writer
		server.setErrWriter(null); // can use custom writer
		server.start();
	}

}
